const Validate = {
    isNum(val) {
        return /^[1-9]\d*$/.test(val);
    },
    isBoolean(val) {
        return /^(true|false)$/.test(val);
    },
    isLength(val, min, max) {
        return val.length >= min && val.length <= max;
    }
};

module.exports = Validate;
